<?php
use Illuminate\Support\Facades\Route;

//Route::get('test/index', ['uses' => 'Modules\Test\Api\Index@index', 'desc' => '表单列表'])->name('api.test.index.index');
//Route::get('test/doc', ['uses' => 'Modules\Test\Api\Index@doc', 'desc' => '文档'])->name('api.test.index.doc');

Route::group([
    'prefix' => 'test',
    'app' => '测试系统'
], function () {
    Route::group([
        'group' => '测试模块'
    ], function () {
        Route::get('index', ['uses' => 'Modules\Test\Api\Index@index', 'desc' => '表单列表'])->name('api.test.index.index');
        Route::get('item/index', ['uses' => 'Modules\Test\Api\Item@index', 'desc' => '测试列表'])->name('api.test.item.index');
        Route::post('item/store', ['uses' => 'Modules\Test\Api\Item@store', 'desc' => '更新'])->name('api.test.item.store');
        Route::get('item/show', ['uses' => 'Modules\Test\Api\Item@show', 'desc' => '查看'])->name('api.test.item.show');
    });
});
